package com.ylyq.ylxx.controller;


import com.ylyq.ylxx.model.ResponseData;
import com.ylyq.ylxx.model.request.SaveCoverWechatRequest;
import com.ylyq.ylxx.service.IYlyqCoverWechatService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author xiaweichao
 * @since 2020-11-09
 */
@RestController
@RequestMapping("/ylyq-cover-wechat")
public class YlyqCoverWechatController {

    @Autowired
    private IYlyqCoverWechatService iYlyqCoverWechatService;

    @PostMapping("/save")
    @ApiOperation(value = "添加微信号")
    public ResponseData save(@RequestBody SaveCoverWechatRequest saveCoverWechatRequest){
        return new ResponseData(ResponseData.Result.SUCCESS,iYlyqCoverWechatService.save(saveCoverWechatRequest));
    }

}
